﻿@model RestApp.UI.Models.LoginModel

@{
	Layout = null;
}

<!DOCTYPE html>

<html>
<head>
	<meta name="viewport" content="width=device-width" />
	<title>Login</title>
	<link href="~/Content/bootstrap.min.css" rel="stylesheet" />
	<style>
		.authorize-form {
			width: 550px;
			margin: 0 auto;
			margin-top: 200px;
		}
		body {
			background: #eee;
		}
		.input-group {
			margin-top: 10px
		}
	</style>
</head>
<body>


	<div class="authorize-form">
		<div class="panel panel-primary">
			<div class="panel-heading">
				<h3 class="panel-title">
					Авторизация на сайте
				</h3>
			</div>
			@using (Html.BeginForm())
			{
				<div class="panel-body">
					<div class="row">
						<div class="col-xs-12  login-box">
							@Html.ValidationSummary(true, "", new { @class = "text-danger" })
							@Html.AntiForgeryToken()
							<div class="input-group">
								<span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
								@Html.EditorFor(model => model.Login, new { htmlAttributes = new { @class = "form-control", placeholder = "Имя пользователя", required = "true", autofocus = "true" } })
								@Html.ValidationMessageFor(model => model.Login, "", new { @class = "text-danger" })
							</div>
							<div class="input-group">
								<span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
								@Html.EditorFor(model => model.Password, new { htmlAttributes = new { @class = "form-control", placeholder = "Ваш пароль", required = "true" } })
								@Html.ValidationMessageFor(model => model.Password, "", new { @class = "text-danger" })
							</div>


						</div>

					</div>
				</div>
				<div class="panel-footer">
					<div class="row">
						<div class="col-xs-6 col-sm-6 col-md-6">
							<input type="submit" class="btn btn-labeled btn-success" value="Войти" />
						</div>
					</div>
				</div>
			}
		</div>
	</div>
</body>
</html>
